<?php

namespace app\interfaces\controller;

use think\View;
use think\Response;

class About
{
    public function index()

    {



        $content = '<style> img {vertical-align:middle; width:auto; max-width:100%;} </style>';
        $content .= '<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">';
        $content .= db('about')->where(['id' => 1])->value('content');


        return Response::create($content, 'html');

    }

    public function user_agreement()
    {
        $content = '<style> img {vertical-align:middle; width:auto; max-width:100%;} </style>';
        $content .= '<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">';
        $content .= db('about')->where(['id' => 2])->value('content');

        return Response::create($content, 'html');

    }



    public function choujing()
    {
        $view = new View();
        echo $view->fetch('');
    }
}